package com.tianji.promotion.constants;

/**
 * @author Yandel
 * @date 2025/5/26 下午9:00
 * @description:
 */
public interface PromotionConstants {
    /**
     * 签到记录的key前缀 完整格式为 sign:uid:用户id:年月
     */
    String COUPON_RANGE_KEY = "coupon:code:range";

    String COUPON_CODE_SERIAL_KEY="coupon:code:seriaL";//自增长id 对应的键

    String COUPON_CODE_MAP_KEY="coupon:code:map";//校验兑换码是否兑换借助于redisbitmap

    String COUPON_CACHE_KEY_PREFIX ="prs:coupon:";


    String USER_CoUPON_CACHE_KEY_PREFIX = "prs:user:coupon:";

    String[] RECEIVE_COUPON_ERROR_MSG={
            "活动未开始",
            "库存不足",
            "活动已经结束",
            "领取次数过多",
    };
    String[]  EXCHANGE_COUPON_ERROR_MSG={
            "兑换码已兑换",
            "无效兑换码",
            "活动未开始",
            "活动已经结束",
            "领取次数过多",
        };







}
